package com.yupi.common;

import lombok.Getter;

@Getter
public enum ErrorCode {
    PARAMS_ERROR(40000, "请求参数错误", ""),
    NULL_ERROR(40001, "请求数据为空", ""),
    NO_AUTH(40100, "无权限", ""),
    NOT_LOGIN(40101, "未登录", ""),
    SYSTEM_ERROR(50100, "内部异常", "");;

    ErrorCode(Integer code, String msg, String description) {
        this.code = code;
        this.description = description;
        this.msg = msg;
    }

    private final String msg;
    private final Integer code;
    private final String description;
}
